package com.linln.modules.member.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;
import org.springframework.data.annotation.CreatedBy;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.linln.modules.system.domain.User;

import lombok.Data;

/**
 * 代理商提现表
 * @author hct
 * @date 2019/09/12
 */
@Data
@Entity
@Table(name="member_agent_money_change")
@EntityListeners(AuditingEntityListener.class)
public class MemberAgentMoneyChange implements Serializable {
    // 主键ID
    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    private Long id;
  
    private String area;
    private String areaName;
    private Integer status;
    //变化前金额价格
    private Double preMoney;   
    //支付金额价格
    private Double changemoney;
    //变后多少钱
    private Double lastmoney;
    //类型
    private Integer type;
    //类型id
    private Long typeid;
    //付款还是退款 1代表收2代表退款3代表提现成功 4代表拒绝
    private Integer statetype; 
    // 创建时间
    @CreatedDate
    private Date createDate;
    // 更新时间
    @LastModifiedDate
    private Date updateDate;
    
}